const global = getApp().globalData;
const wxApi = global.wxApi;
Component({
  properties: {
    subed: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onSearch() {
      let path = '../search/search';
      wxApi.navigateTo( path , {
        name: 'book',
        subed: this.data.subed
      })
    },
    onOpenSelecter() {
      this.triggerEvent( 'openSelecter' );
    }
  }
})